#include "qrunnablerun.h"

QRunnableRun::QRunnableRun()
{
    startFlag = false;
}

QRunnableRun::~QRunnableRun()
{

}

void QRunnableRun::setSwitch(bool flag)
{
    startFlag = flag;
}

void QRunnableRun::run()
{
    while(startFlag)
    {
        qDebug()<<"QRunnableRun子线程号:"<<QThread::currentThread();
        QThread::msleep(1000);
    }
}
